package com.xiaoshuidi.cloud.module.guanwang.controller.app.map;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.guanwang.enums.ApiConstants;
import com.xiaoshuidi.cloud.module.rooms.api.map.BaiDuMapAppApi;
import com.xiaoshuidi.cloud.module.rooms.api.map.vo.GetHFAdministrativeVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.annotation.security.PermitAll;
import java.util.List;

@RestController
@RequestMapping(ApiConstants.NAME + "/baidumap")
public class BaiduMapController {

    @Resource
    private BaiDuMapAppApi baiDuMapAppApi;

    @PermitAll
    @GetMapping("/HF-administrative")
    public CommonResult<List<GetHFAdministrativeVO>> getHFAdministrative(){
        return baiDuMapAppApi.getHFAdministrative();
    }
}
